import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import Vant from 'vant';
import 'vant/lib/index.css';
import 'amfe-flexible';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import SignCanvas from "sign-canvas";
import getLanguages from "@/utils/language";
import {i18n} from './lang/index'
Vue.use(getLanguages)
// Vue.use(i18n)
Vue.use(SignCanvas);
Vue.use(Vant);
Vue.use(ElementUI);
import './assets/base/base.css'
Vue.config.productionTip = false

new Vue({
  router,
  store,
  i18n, //使用国际化
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  render: h => h(App)
}).$mount('#app')
